import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
import App from './goodsDetail.vue'



import { Loading,Swipe, SwipeItem ,Icon ,Popup ,Rate,Stepper,Button,Field,Step,Steps,NavBar,Uploader,Dialog,ImagePreview,Toast,Overlay,DropdownMenu,DropdownItem} from 'vant';
Vue.use(Swipe).use(SwipeItem).use(Icon).use(Popup).use(Rate).use(Stepper).use(Button).use(Field).use(Step).use(Steps).use(NavBar);
Vue.use(Uploader).use(ImagePreview).use(Toast).use(Overlay).use(DropdownMenu).use(DropdownItem).use(Dialog).use(Loading)

import VideoPlayer from 'vue-video-player'
require('video.js/dist/video-js.css')
require('vue-video-player/src/custom-theme.css')
Vue.use(VideoPlayer)

import router from '../../router'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const Router = new VueRouter({
  routes: router.goodsDetail,
  mode: 'history'
})
// 挂载元素 #app指的是 public下的 index.html中的app元素
new Vue({
  router: Router,
  render: h => h(App)
}).$mount('#app')


